package com.wwwarehouse.contract.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by feng.gao on 2017/9/22.
 */

public class SelectCustomerBean implements Parcelable {
	private String name;
	private boolean isSelect;

	public SelectCustomerBean() {
	}

	protected SelectCustomerBean(Parcel in) {
		name = in.readString();
		isSelect = in.readByte() != 0;
	}

	public static final Creator<SelectCustomerBean> CREATOR = new Creator<SelectCustomerBean>() {
		@Override
		public SelectCustomerBean createFromParcel(Parcel in) {
			return new SelectCustomerBean(in);
		}

		@Override
		public SelectCustomerBean[] newArray(int size) {
			return new SelectCustomerBean[size];
		}
	};

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isSelect() {
		return isSelect;
	}

	public void setSelect(boolean select) {
		isSelect = select;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(name);
		dest.writeByte((byte) (isSelect ? 1 : 0));
	}
}
